package com.meteor.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * 登录日志
 *
 * @author lynn
 * @date 2024/1/03
 */
@Data
@TableName("sys_log_login")
public class SysLogLogin {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;


    @Schema(description = "用户名")
    private String username;


    @Schema(description = "登录IP")
    private String ip;


    @Schema(description = "登录地点")
    private String address;


    @Schema(description = "User Agent")
    private String userAgent;


    @Schema(description = "登录状态  0：失败   1：成功")
    private Integer status;


    @Schema(description = "操作信息   0：登录成功   1：退出成功  2：验证码错误  3：账号密码错误")
    private Integer operation;


    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    

    @Schema(description = "租户ID")
    private String merchantId;

}